<?php
date_default_timezone_set('America/Los_Angeles');
$gstartdate = date('m/d/Y h:i:s a', time());
// outputs e.g.  somefile.txt was last modified: December 29 2002 22:16:23.
$filename = $argv[1];
if (file_exists($filename)) {
  if ((filemtime($filename) - strtotime("-1 week")) <= 1 )
   {
     echo "Don't load file";
   }
   else
   {
     echo " load file";
   }
  }
?>
